package com.qf.lanzhou.blog.api.service.impl;

import com.qf.lanzhou.blog.api.dao.Impl.UpdatePasswordDaoimpl;
import com.qf.lanzhou.blog.api.dao.UpdatePasswordDao;
import com.qf.lanzhou.blog.api.pojo.entity.User;
import com.qf.lanzhou.blog.api.service.UpdatePasswordService;

import java.util.List;

/**
 * @Author jian
 * @Date 2020/12/17 17:07
 * @JDK 1.8
 * @Version 1.0
 */
public class UpdatePasswordServiceimpl implements UpdatePasswordService {
    private UpdatePasswordDao updatePasswordDao=new UpdatePasswordDaoimpl();
    @Override
    public List<User> selectUsernameAndPassword(String userName,String password,Long id) {
        return updatePasswordDao.selectUsernameAndPassword(id);
    }

    @Override
    public int update(String password, Long id) {
        return updatePasswordDao.update(password,id);
    }
}
